export default {
    datalist:[],
    subscribe(cd){
        this.datalist.push(cd);
        // console.log(this.datalist);
    },
    publish(value){
        this.datalist.forEach(cd=>cd(value))
    }
    
}